import {Component, EventEmitter, Input, OnInit, Output} from '@angular/core';

@Component({
  selector: 'app-invoice-info',
  templateUrl: './invoice-info.component.html',
  styleUrls: ['./invoice-info.component.less']
})
export class InvoiceInfoComponent implements OnInit {
  @Input()
  isVisible: any;

  @Output()
  emit: EventEmitter <any> = new EventEmitter();

  constructor() { }

  ngOnInit(): void {
  }

  handleCancel() {
    this.isVisible = false;
    this.emit.emit(this.isVisible);
  }

}
